package com.ostrich.xflowlayoutdemo.room;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

/**
 * @Author : yaotianxue
 * @Time : On 2023/9/25 10:50
 * @Description : HistoryEntity
 */
@Entity(tableName = "history")
public class HistoryEntity {
    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "id")
    private int id;
    @ColumnInfo(name = "text")
    private String text;

    @Override
    public String toString() {
        return "HistoryEntity{" +
                "id=" + id +
                ", text='" + text + '\'' +
                '}';
    }

    public HistoryEntity(int id, String text) {
        this.id = id;
        this.text = text;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
